
--管理器--
ThunderManager = {};
local this = ThunderManager;

this.PrefabNames={'Player','Bullet','EnemyBullet','Enemy1','Enemy2','Enemy3','EnemyPoint',"Boss","BossPoint","BossBullet2","warn","OverPanel"};
this.prefabs={};

function ThunderManager.New()
    resMgr:LoadPrefab("thunder",this.PrefabNames,this.OnLoadPrefab)
end

--加载预制体
--加载游戏对象
function ThunderManager.OnLoadPrefab(objs)
    for i=1,objs.Length do
        table.insert(this.prefabs,objs[i-1])
    end

    --初始化玩家
    Player.New();

    --初始化敌人
    EnemyFactory.New()
end